<%@ Page Language="vb" AutoEventWireup="false" Codebehind="adm_findmerchants.aspx.vb" Inherits="georgia_globaltp.adm_findmerchants" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>adm_findmerchants</title>
		<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="javascript">document.forms[0].vid.focus();
		function merchantcontext(cid, vid)
{
document.merchantinfo.svid.value = vid;
document.merchantinfo.ncid.value = cid;
document.merchantinfo.action = "/Admin/change_context.aspx";
document.merchantinfo.submit();
}

function merchantdetail(vid)
{
document.merchantinfo.svid.value = vid;
document.merchantinfo.action = "Adm_editMerchant.aspx";
document.merchantinfo.submit();
}
		</script>
	</HEAD>
	<body leftMargin="0" topMargin="0" MS_POSITIONING="GridLayout">
		<%if Len(Msg)>0 then%>
		<font color="red"><b>
				<%=Msg%>
			</b></font>
		<%end if%>
		<form id="findmerchant" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td id="header" colSpan="2">
						<table cellspacing="0" class="box">
							<tr>
								<td colspan="2" class="header">Find/Edit Account</td>
							</tr>
							<tr>
								<td>Account ID :</td>
								<td><asp:textbox ID="vid" TabIndex="0" maxlength="15" runat="server"></asp:textbox></td>
							</tr>
							<tr>
								<td>Merchant Name :</td>
								<td><asp:textbox ID="Company" TabIndex="1" runat="server" maxlength="50"></asp:textbox></td>
							</tr>
							<tr>
								<td>Display :</td>
								<td>
									<asp:dropdownlist ID="Display" TabIndex="2" runat="server">
										<asp:ListItem value="Y">Active</asp:ListItem>
										<asp:ListItem value="N">Inactive</asp:ListItem>
										<asp:ListItem value=" ">All</asp:ListItem>
									</asp:dropdownlist>
								</td>
							</tr>
							<tr>
								<td>Records Per Page :</td>
								<td><asp:DropDownList ID="RPP" TabIndex="3" Runat="server"></asp:DropDownList>
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center">
									<hr>
									<input type="hidden" name="sortby" value="<%=sortby%>"> <input type="hidden" name="PG" value="1">
									<!--<input type="hidden" name="sortby"> <input type="hidden" name="PG" value="1">-->
									<asp:button ID="btnFind" Text="Find" Runat="server"></asp:button>&nbsp;&nbsp;
									<asp:button ID="btnCancel" Text="Cancel" Runat="server"></asp:button>
								</td>
							</tr>
						</table>
						<%If IsPostBack Then%>
						<form name="merchantinfo" method="post">
							<table cellspacing="0" width="100%" class="majorbox">
								<tr>
									<td class="header">Search Results</td>
								</tr>
								<tr>
									<td>
										<table border="0" cellspacing="0" width="100%" class="minorbox">
											<%if IsNothing(vRs) then %>
											<tr>
												<td colspan="7"><font face='verdana' size='2'><b>No merchants were found</b></font></td>
											</tr>
											<%else %>
											<tr>
												<td class="gridheader">&nbsp;</td>
												<td class="gridheader" nowrap><a href="adm_findmerchants.asp<%=sQS%>&amp;action=Refind&amp;sortby=viaKlix_ID&amp;PG=<%=PG%>">Account 
														ID</a></td>
												<td class="gridheader"><a href="adm_findmerchants.asp<%=sQS%>&amp;action=Refind&amp;sortby=MERCHANT_NAME&amp;PG=<%=PG%>">Merchant 
														Name</a></td>
												<td class="gridheader"><a href="adm_findmerchants.asp<%=sQS%>&amp;action=Refind&amp;sortby=CITY&amp;PG=<%=PG%>">City</a></td>
												<td class="gridheader"><a href="adm_findmerchants.asp<%=sQS%>&amp;action=Refind&amp;sortby=CONTACT_PHONE1&amp;PG=<%=PG%>">Phone</a></td>
												<td class="gridheader"><a href="adm_findmerchants.asp<%=sQS%>&amp;action=Refind&amp;sortby=CONTACT_EMAIL&amp;PG=<%=PG%>">Email</a></td>
												<td class="gridheader"><a href="adm_findmerchants.asp<%=sQS%>&amp;action=Refind&amp;sortby=ACTIVE&amp;PG=<%=PG%>">Active</a></td>
											</tr>
											<%Response.write(HTMLString)
											 'end if
											 if nNumPages > 0 then
											 DrawPaginationControls()
											response.write("HTMLDispage")
											 end if%>
										</table>
									</td>
								</tr>
							</table>
						</form>
						<%end if
						end if%>
					</td>
				</tr>
			</table>
			<input type="hidden" name="svid"> <input type="hidden" name="ncid">
		</form>
	</body>
</HTML>
